package service;

import java.util.List;
import model.User;

public interface UserService {
    public boolean CreateUser(User user)throws Exception;//创建一个新用户

    public boolean deleteUser(String userid)throws Exception;//通过用户ID删除一个用户

    public boolean updateUser(User user)throws Exception;//更新用户信息

    public List<User> findAll()throws Exception;//查询所有用户

    public String findUserByID(String userid)throws Exception;//通过用户ID获取用户密码

    public boolean finduserByID(String userid)throws Exception;//通过用户ID判断用户是否存在

    public User findAUserByID(String userid)throws Exception;//通过用户ID查找一个用户

}